import request from '@/utils/request'

//查询车辆处置信息列表
export function getVehicleDisposalWarning(params) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalWarning/list`,
    method: 'get',
    params
  })
}
//新增车辆基础信息
export function vehicleDisposal(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal`,
    method: 'post',
    data
  })
}

//根据车辆id查询车辆基础信息(处置模块使用)
export function getVehicleDisposal(carId) {
  return request({
    url: `/car/carBasic/getVehicleDisposal/${carId}`,
    method: 'get',
  })
}

//查询车辆报废处置信息列表
export function getList(params) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/list`,
    method: 'get',
    params
  })
}
//获取车辆报废处置信息详细信息
export function getDetails(vehicleDisposalScrapId) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/${vehicleDisposalScrapId}`,
    method: 'get',
  })
}

//新增弹框车辆报废处置信息详细信息
export function getVehicleDisposalList(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/getVehicleDisposalList`,
    method: 'post',
    data
  })
}

//新增车辆报废处置信息
export function ScrapHandleNew(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap`,
    method: 'post',
    data
  })
}

//提交车辆报废处置信息
export function submit(data) {
  return request({
    url: `/vehicleDisposal/vehicleDisposalScrap/submit`,
    method: 'post',
    data
  })
}

//查询车辆租购过户信息列表
export function getTransferList(params) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/list`,
    method: 'get',
    params
  })
}

//获取车辆租购过户信息详细信息
export function getTransferDetails(id) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/${id}`,
    method: 'get',
  })
}

//提交车辆租购过户信息
export function submitTransfer(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/submit`,
    method: 'post',
    data
  })
}

// 弹框  获取车辆租购过户信息详细信息
export function getVehicleDisposalLeaseList(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/getVehicleDisposalList`,
    method: 'post',
    data
  })
}

//新增车辆租购过户信息
export function carLeasePurchaseTransfer(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer`,
    method: 'post',
    data
  })
}

//申请开票
export function applyInvoice(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/applyInvoice`,
    method: 'post',
    data
  })
}


//开票
export function invoicing(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/invoicing`,
    method: 'post',
    data
  })
}

//查看开票
export function getInvoicing(id) {
  return request({
    url: `/carLeaseTransferInvoice/${id}`,
    method: 'get',
  })
}


//获取车辆处置信息详细信息
export function getInfoDetail(params) {
  return request({
    url: `/vehicleDisposal/vehicleDisposal/getInfo`,
    method: 'get',
    params
  })
}